# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=certbot
pkgver=1.29.0
pkgrel=0
pkgdesc="An ACME client that can update Apache/Nginx configurations"
url="https://github.com/certbot/certbot"
arch="noarch"
license="Apache-2.0"
depends="
	py3-acme
	py3-configargparse
	py3-configobj
	py3-cryptography
	py3-distro
	py3-distutils-extra
	py3-josepy
	py3-parsedatetime
	py3-pyrfc3339
	py3-tz
	py3-setuptools
	py3-zope-component
	py3-zope-interface
"
checkdepends="py3-augeas py3-pytest"
replaces="letsencrypt"
source="https://pypi.io/packages/source/c/certbot/certbot-$pkgver.tar.gz"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
d081964d3b85af84ec4efa39c1535d010ce303c4bb658428ff584e385411f19c091eedd54ee2ebfc4f1374508baeb1c2f52904c60c9fa5818b307a075a8a5127  certbot-1.29.0.tar.gz
"
